home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 5 / QRZ Ham Radio Callsign Database - Volume 5.iso / files / amiga / csrc720j.lzh / version.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-26  |  2.2 KB  |  91 lines

  1. /* version.c */
  2. #include <stdio.h>
  3. #include <ctype.h>
  4. #include "mb.h"
  5.  
  6. extern char optflags[];     
  7. extern struct Window *mywindow ;    /* ptr to applications window */
  8. extern short od ;     /* device is open so it can be closed */
  9.  
  10. #define IBM_VERSION "7.20"
  11. #define AMI_VERSION "j"
  12. #define DATE_VERSION "28-Aug-1993"
  13.  
  14. /* This string is only for the "version" program */
  15. static  char *sys_version =
  16.        "\0$VER: CBBS V" IBM_VERSION AMI_VERSION " (" DATE_VERSION ")";
  17.  
  18. /* Original version strings from distribution
  19. char  *ver = "\nC-BBS V7.2, 30 JAN 1992\n\n";
  20. char  *vers = "[CBBS-7.20-H$]\n";
  21. */
  22.  
  23. /* Version strings for Amiga Multi-Port version */
  24. char  *ver = "\nAMIGA Multi-Port C-BBS V" IBM_VERSION AMI_VERSION ", "
  25.                   DATE_VERSION " (VE5VA)\n\n";
  26.  
  27. /* This string MUST have exactly two hyphens in it so that the code in
  28.    mbinit which removes the B will work if #C is set
  29. */
  30. #ifndef MCH_ZOO
  31. char  *vers = "[M_CBBS-" IBM_VERSION AMI_VERSION "-BFMH$]\n";
  32. #else
  33. char  *vers = "[M_CBBS-" IBM_VERSION AMI_VERSION "-ZBFMH$]\n";
  34. #endif
  35.  
  36. extern char hostport;
  37.  
  38. /* Window titles for the various versions (no such thing in the distribution
  39.    version so there's no need to look for MCH_AMIGA
  40. */
  41.  
  42. #ifdef MCH_SYSOP
  43.  
  44. /* Title for the SYSOP version */
  45. char *title = " SYSOP V" IBM_VERSION AMI_VERSION;
  46.  
  47. #else
  48. /* Title for multi-port version */
  49.  
  50. char *title = " CBBS V" IBM_VERSION AMI_VERSION ;
  51. #endif
  52.  
  53. extern char *fwdfile;
  54. short gotmail = 0;
  55. char titlestr[80];
  56. char conn_call[10];
  57. char conn_direction = ' ';
  58. short versions = 0;
  59. window_title(i,j)
  60. short i,j;
  61. {
  62.    register int k,l;
  63.    if(od == 0)return;
  64.    if(!optflags[5])return;
  65.    if((k = i) < 0)k = 0;
  66.    if((l = j) < 0)l = 0;
  67.    sprintf(titlestr,"%c%6s %5d/%-4d %14s #%c    %13s    %-10s",
  68.                      conn_direction,conn_call,
  69.                      k,l,
  70.                      title,hostport,
  71.                      gotmail? "You have mail":"",
  72.                      fwdfile?fwdfile:"");
  73.    setwtitles(titlestr);
  74. }
  75. user_title(p)
  76. char *p;
  77. {
  78.    register int i;
  79.    register char *q,*r;
  80.    q = conn_call;
  81.    r = titlestr;
  82.    if(*p)*r++ = conn_direction;
  83.    else  *r++ = ' ';
  84.    for(i=0;i<ln_call && *p;i++,p++) {
  85.       *r++ = *q++ = *p;
  86.    }
  87.    for(;i<ln_call;i++)*r++ = *q++ = ' ';
  88.    setwtitles(titlestr);
  89. }
  90.  
  91.